﻿Imports System.Data.SqlClient
Imports _1065144_1065164.DataProvider
Public Class TaiKhoanNguoiDungBUS
    Public Shared Function GetAll() As DataTable
        Dim listTK As New DataTable()

        listTK = TaiKhoanNguoiDungDAO.GetAll()

        Return listTK
    End Function
    Public Shared Sub Insert(ByVal sqlparameters As SqlParameter())
        TaiKhoanNguoiDungDAO.Insert(sqlparameters)

    End Sub
   
    Public Shared Function GetByID(ByVal UID As String) As List(Of TaiKhoanNguoiDungDTO)
        Dim listTaiKhoan As List(Of TaiKhoanNguoiDungDTO)

        Dim paraUID As SqlParameter = New SqlParameter("TenTaiKhoan", SqlDbType.VarChar)
        paraUID.Direction = ParameterDirection.Input
        paraUID.Value = UID

        listTaiKhoan = TaiKhoanNguoiDungDAO.GetByID(paraUID)

        Return listTaiKhoan
    End Function
    Public Shared Sub Update(ByVal sqlparameters As SqlParameter())
        TaiKhoanNguoiDungDAO.Update(sqlparameters)
    End Sub
    Public Shared Sub Delete(ByVal sqlparameters As SqlParameter)
        TaiKhoanNguoiDungDAO.Delete(sqlparameters)
    End Sub
End Class
